﻿<!DOCTYPE html>
<!-- saved from url=(0044)http://www.yxx66.cn/index/index/login.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
		<title>登录</title>
		<link href="./登录_files/mui.css" rel="stylesheet">
		<link href="./登录_files/login.css" rel="stylesheet">
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">会员登录</h1>
		</header>
		<div class="mui-content">
			<div style="padding: 10px 10px;">
				<div id="segmentedControl" class="mui-segmented-control">
					<a class="mui-control-item mui-active" href="http://www.ybconn.com/index/index/login.html#item1">账号密码登录</a>
							</div>
			</div>
			<div>
				<div id="item1" class="mui-control-content mui-active">
					<form method="post" action="http://www.ybconn.com/index/index/login">
					<div id="login-form" class="mui-input-group">
						<div class="mui-input-row">
							<label>账号</label>
							<input name="username" type="text" class="mui-input-clear mui-input" placeholder="请输入账号" data-input-clear="3"><span class="mui-icon mui-icon-clear mui-hidden"></span>
						</div>
						<div class="mui-input-row">
							<label>密码</label>
							<input name="password" type="password" class="mui-input-clear mui-input" placeholder="请输入密码" data-input-clear="4"><span class="mui-icon mui-icon-clear mui-hidden"></span>
						</div>
					</div>
					<div class="mui-input-group">
						<ul class="mui-table-view mui-table-view-chevron">
							<li class="mui-table-view-cell">
								自动登录
								<input type="hidden" name="isCookie" value="true">
								<div id="autoLogin" class="mui-switch mui-active" data-switch="1">
									<div class="mui-switch-handle"></div>
								</div>
							</li>
						</ul>
					</div>
					<div class="mui-content-padded">
						<button onclick="location.href='http://www.yxx66.cn"  class="btn">登录</button>
										</div>
					</div>
					<div class="mui-content-padded oauth-area">
		
					</div>
					</form>
				</div>
				<div id="item2" class="mui-control-content">
					<form method="post" action="http://www.ybconn.com/index/index/loginsms">
					<div id="login-form" class="mui-input-group">
						<div class="mui-input-row">
							<label>手机号</label>
							<input id="mobile" name="username" type="text" class="mui-input" placeholder="请输入账号">
							<button type="button" class="mui-btn" onclick="get_mobile_code();">发送</button>
						</div>
						<div class="mui-input-row">
							<label>验证码</label>
							<input name="mobile_code" type="text" class="mui-input-clear mui-input" placeholder="请输入账号" data-input-clear="6"><span class="mui-icon mui-icon-clear mui-hidden"></span>
						</div>
					</div>
					<div class="mui-input-group">
						<ul class="mui-table-view mui-table-view-chevron">
							<li class="mui-table-view-cell">
								自动登录
								<input type="hidden" name="isCookie" value="true">
								<div id="autoLogin" class="mui-switch mui-active" data-switch="2">
									<div class="mui-switch-handle"></div>
								</div>
							</li>
						</ul>
					</div>
					<div class="mui-content-padded">
						<button id="loginsms" class="mui-btn mui-btn-block mui-btn-primary">登录</button>
						<div class="link-area"><a id="reg" href="http://www.ybconn.com/index/index/reg.html">注册账号</a> <span class="spliter">|
							</span> <a id="forgetPassword">忘记密码</a>
						</div>
					</div>
					<div class="mui-content-padded oauth-area">
		
					</div>
					</form>
				</div>
			</div>
		</div>
		<script src="./登录_files/mui.min.js"></script>
		<script>
			mui('.mui-switch').each(function() { //循环所有toggle
				//toggle.classList.contains('mui-active') 可识别该toggle的开关状态
				//this.parentNode.querySelector('span').innerText = '状态：' + (this.classList.contains('mui-active') ? 'true' : 'false');
				/**
				 * toggle 事件监听
				 */
				this.addEventListener('toggle', function(event) {
					//event.detail.isActive 可直接获取当前状态
					this.parentNode.querySelector('input').value = event.detail.isActive ? 'true' : 'false';
				});
			});	
		</script>
	

</body></html>